home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.hut.fi!usenet
- From: oahvenla@hyppynaru.cs.hut.fi (Osma Ahvenlampi)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: OpenLibrary() on .datatypes & .classes
- Date: 08 Apr 1996 18:13:55 +0300
- Organization: What, me, organised?
- Sender: oahvenla@hyppynaru.cs.hut.fi
- Distribution: Earth
- Message-ID: <jdjwx3q6958.fsf@hyppynaru.cs.hut.fi>
- References: <DpJL5A.Jy5@gpu.utcc.utoronto.ca>
- NNTP-Posting-Host: hyppynaru.cs.hut.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- In-reply-to: normb@gpu.utcc.utoronto.ca's message of Mon, 8 Apr 1996 11:55:57
- GMT
- X-Newsreader: Gnus v5.1
-
- In article <DpJL5A.Jy5@gpu.utcc.utoronto.ca> normb@gpu.utcc.utoronto.ca (Norman Baccari) writes:
- >I've noticed that if you use OpenLibrary() on .datatypes and .classes you can
- >get the same information that you would when you use it on a library, IE
- >the IDString, version,revision, etc. My RKRMs say nothing (that I could find)
- >on this. I have had no problems/enforcer hits doing this. Is this "legal"??
-
- Umm.. I suppose you mean that you get a valid struct Library *. Yes,
- you do. .class, .gadget, .image, and .datatype are special forms of
- .library, which on the other hand is a special form of the Exec
- loadable library file, as is .device. The difference between devices
- and libraries is the number of reserved LVOs in the beginning (the
- bias for the first function LVO), whereas the diffrence between
- libraries in SYS:Classes and in SYS:Libs is that while classes may
- have .library-like public function LVOs, those usually are not the
- real point of the library. Instead, opening a BOOPSI library (which
- these are) will make the library's initialization code add a new
- BOOPSI class to the system. BOOPSI classes are called by invoking
- object methods by sending messages to them with the DoMethod() and
- similar functions.
-
- --
- A conclusion is simply the place where you got tired of thinking.
- | "Osma Ahvenlampi" <mailto:oa@iki.fi> <http://www.iki.fi/oa/> |
- | Amiga&BeBox&ClassAct&Voodoo&ARTech cool stuff: I-Net225&AWeb |
- --
-